package com.tms.app.tms.bean;

import org.xutils.DbManager;
import org.xutils.db.annotation.Column;
import org.xutils.ex.DbException;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/11/30 0030.
 */

public class TaskData {

    @Column(
            name = "ID",
            isId = true,
            autoGen = true
    )
    private int id;
    @Column(name = "mobile" )
    private String mobile;
    @Column(name = "getPlanStation" )
    private String getPlanStation="";
    @Column(name = "fee" )
    private Double fee;
    @Column(name = "dispatchUserName" )
    private String dispatchUserName="";
    @Column(name = "dianpatchUserMobile" )
    private String dianpatchUserMobile="";
    @Column(name = "allotPlanNo" )
    private String allotPlanNo="";
    @Column(name = "remark" )
    private String remark="";
    @Column(name = "reqestFee" )
    private Double reqestFee;
    @Column(name = "hasExecTask" )
    private int hasExecTask;// 是否存在正在执行的任务 0 不存在，1存在
    @Column(name = "planStatus" )
    private int planStatus;// 派车单状态 0 待执行，1执行中，2 司机已完成
    @Column(name = "showType" )
    private List<Node> stationExecList=new ArrayList<>();

    private  String gate_name;//": "测试浦东寄单点",
    private String gate_address;//": "上海市上海市浦东新区花木街道合欢路29号中国保险监督管理委员会上海监管局",
    private String gate_contact;//": "寄单2",
    private String gate_phone;//": "15488990000",
    double latitude;//经度
    double longitude;//


    public List<Node> getOrders(DbManager db) throws DbException {
        return db.selector(Node.class).where("taskId", "=", this.id).findAll();
    }

    public String getGetPlanStation() {
        return getPlanStation;
    }

    public void setGetPlanStation(String getPlanStation) {
        this.getPlanStation = getPlanStation;
    }

    public double getFee() {
        return fee;
    }

    public void setFee(double fee) {
        this.fee = fee;
    }

    public String getDispatchUserName() {
        return dispatchUserName;
    }

    public void setDispatchUserName(String dispatchUserName) {
        this.dispatchUserName = dispatchUserName;
    }

    public String getDianpatchUserMobile() {
        return dianpatchUserMobile;
    }

    public void setDianpatchUserMobile(String dianpatchUserMobile) {
        this.dianpatchUserMobile = dianpatchUserMobile;
    }

    public String getAllotPlanNo() {
        return allotPlanNo;
    }

    public void setAllotPlanNo(String allotPlanNo) {
        this.allotPlanNo = allotPlanNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Double getReqestFee() {
        return reqestFee;
    }

    public void setReqestFee(Double reqestFee) {
        this.reqestFee = reqestFee;
    }

    public List<Node> getStationExecList() {
        return stationExecList;
    }

    public void setStationExecList(List<Node> stationExecList) {
        this.stationExecList = stationExecList;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public int getHasExecTask() {
        return hasExecTask;
    }

    public void setHasExecTask(int hasExecTask) {
        this.hasExecTask = hasExecTask;
    }

    public int getPlanStatus() {
        return planStatus;
    }

    public void setPlanStatus(int planStatus) {
        this.planStatus = planStatus;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }


    public String getGate_name() {
        return gate_name;
    }

    public void setGate_name(String gate_name) {
        this.gate_name = gate_name;
    }

    public String getGate_address() {
        return gate_address;
    }

    public void setGate_address(String gate_address) {
        this.gate_address = gate_address;
    }

    public String getGate_contact() {
        return gate_contact;
    }

    public void setGate_contact(String gate_contact) {
        this.gate_contact = gate_contact;
    }

    public String getGate_phone() {
        return gate_phone;
    }

    public void setGate_phone(String gate_phone) {
        this.gate_phone = gate_phone;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }
}
